package top.littlejiang.onlinexam.mapper;

import org.apache.ibatis.annotations.Param;
import top.littlejiang.onlinexam.entity.OlexamExam;
import top.littlejiang.onlinexam.entity.OlexamExamWork;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 考试工作关系表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2021-03-14
 */
public interface OlexamExamWorkMapper extends BaseMapper<OlexamExamWork> {

    /**
     * 根据用户查询考试
     * @param work
     * @return
     */
    List<OlexamExam> getExamByUser(@Param("work") OlexamExamWork work);
}
